package soccer.stats

import grails.converters.JSON

class DataParsersController {

    def index = { }

    def updatePlayers = {
    }

    def updateTeams = {
        def newTeamsAdded = UpdateDataService.updateTeamsInfo(params.leagueNick)
        render newTeamsAdded as JSON
    }
}
